cmd/go: validate inferred module path for go mod init#76432
cmd/go: validate inferred module path for go mod init#76432chenyanchen wants to merge 1 commit intogolang:masterfrom
Conversation
|
This PR (HEAD: 8ff1ca2) has been imported to Gerrit for code review. Please visit Gerrit at https://go-review.googlesource.com/c/go/+/723640. Important tips:
|
|
Message from Gopher Robot: Patch Set 1: (1 comment) Please don’t reply on this GitHub thread. Visit golang.org/cl/723640. |
|
Message from Jorropo: Patch Set 1: Code-Review+1 Commit-Queue+1 Please don’t reply on this GitHub thread. Visit golang.org/cl/723640. |
|
Message from Go LUCI: Patch Set 1: Dry run: CV is trying the patch. Bot data: {"action":"start","triggered_at":"2025-11-24T10:20:19Z","revision":"5638c547c6d57a4a0389c05728d49076bcaae994"} Please don’t reply on this GitHub thread. Visit golang.org/cl/723640. |
|
Message from Jorropo: Patch Set 1: -Commit-Queue Please don’t reply on this GitHub thread. Visit golang.org/cl/723640. |
|
Message from Go LUCI: Patch Set 1: This CL has failed the run. Reason: Tryjob golang/try/gotip-linux-amd64-boringcrypto has failed with summary (view all results):
To reproduce, try Additional links for debugging: Please don’t reply on this GitHub thread. Visit golang.org/cl/723640. |
|
Message from Go LUCI: Patch Set 1: LUCI-TryBot-Result-1 Please don’t reply on this GitHub thread. Visit golang.org/cl/723640. |
|
Message from Yanchen Chen: Patch Set 1: (2 comments) Please don’t reply on this GitHub thread. Visit golang.org/cl/723640. |
|
Message from Sean Liao: Patch Set 2: Commit-Queue+1 Please don’t reply on this GitHub thread. Visit golang.org/cl/723640. |
|
Message from Go LUCI: Patch Set 2: Dry run: CV is trying the patch. Bot data: {"action":"start","triggered_at":"2026-02-06T20:16:54Z","revision":"39e166dc529a21eb7a473436b7e608309ffbb88d"} Please don’t reply on this GitHub thread. Visit golang.org/cl/723640. |
|
Message from Sean Liao: Patch Set 2: -Commit-Queue (Posted by golang-scoped@luci-project-accounts.iam.gserviceaccount.com on behalf of sean@liao.dev) Please don’t reply on this GitHub thread. Visit golang.org/cl/723640. |
|
Message from Go LUCI: Patch Set 2: This CL has passed the run Please don’t reply on this GitHub thread. Visit golang.org/cl/723640. |
|
Message from Go LUCI: Patch Set 2: LUCI-TryBot-Result+1 Please don’t reply on this GitHub thread. Visit golang.org/cl/723640. |
|
Message from Sean Liao: Patch Set 2: Code-Review+2 Please don’t reply on this GitHub thread. Visit golang.org/cl/723640. |
|
Message from Michael Matloob: Patch Set 2: Code-Review+2 Please don’t reply on this GitHub thread. Visit golang.org/cl/723640. |
|
Message from Junyang Shao: Patch Set 2: Code-Review+1 Please don’t reply on this GitHub thread. Visit golang.org/cl/723640. |
Ensure `go mod init` validates the module path even when it is inferred from GOPATH. Fixes #73121 Change-Id: I8b7785ff57eec17bba432f48c8e3a18a2f92aab5 GitHub-Last-Rev: 8ff1ca2 GitHub-Pull-Request: #76432 Reviewed-on: https://go-review.googlesource.com/c/go/+/723640 Reviewed-by: Jorropo <jorropo.pgm@gmail.com> LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com> Reviewed-by: Sean Liao <sean@liao.dev> Reviewed-by: Michael Matloob <matloob@google.com> Reviewed-by: Junyang Shao <shaojunyang@google.com>
|
This PR is being closed because golang.org/cl/723640 has been merged. |
Ensure
go mod initvalidates the module path even when it is inferred from GOPATH.Fixes #73121